星芽短剧[短].js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. var rule = {
  2. 类型: '影视',
  3. title: '星芽短剧[优]',
  4. host: 'https://app.whjzjx.cn',
  5. url: '/cloud/v2/theaterfyfilter',
  6. filter_url: '/home_page?theater_class_id=fyclass&type=1&{{fl.type or "class2_ids=0"}}&page_num=fypage&page_size=24',
  7. searchUrl: '/v3/search',
  8. searchable: 2,
  9. quickSearch: 1,
  10. filterable: 1,
  11. filter: 'H4sIAAAAAAAAA6vmUgACJUMlK4VoMBMEquEssGR2aiVQWqmksiBVSQdVKi8xNxUk93zj7qfzutFlyxJzSlNRTMZuA8I4kFlPW1e8bF6BZhbCTJCS5JzE4mKj+MyUYlsDJQx1tZha8dn3snnv0x1NxNpnQrF9T/uXvFjcSqx9phTb97xvw5Pdi1+saHjWTLSthpRb+6xjxvOl84i10IjycH3Z0PZi0VpiLTSnPFxX7n+xrYvoEKXcwqd9bU/7NxGdUCnPGS+2zni6cj/RUWhGeZAunfe0ZzfRFlKeSF+29z6fMp9YC6ngwSlznq5bQKx9xsbUKGxIzvzGVMgbfS1PdxIdkcaUR+SLCT1P180l1kJLyu1rmfhsC9Glm7ERxRY+2bWJhCg0MaTchzMnPGtEr9JxWmiBxT4UkVguVPFYrloA8HqNcnwIAAA=',
  12. headers: {
  13. "X-App-Id": "7",
  14. "platform": "1",
  15. "manufacturer": "Xiaomi",
  16. "version_name": "3.2.0.1",
  17. "user_agent": "Mozilla/5.0 (Linux; Android 11; M2012K10C Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/87.0.4280.141 Mobile Safari/537.36",
  18. "dev_token": "BY1wFZd4K0vDqzVMbtHXNmlQ29ovO5peS5MsZ7VX1rQUXDwAqskxkJtiPMZCEj6MaW-40xNnbvn12F68nLEAMkRoD7tpoieO4nkUE-GLOYxqCs0xmxWgXAh0-7NmmGCHi95SlyZlpHeit94JfJPkpo-hl4JFru2wUI-4P0AwDc5Y*",
  19. "app_version": "3.2.0.1",
  20. "device_platform": "android",
  21. "personalized_recommend_status": "1",
  22. "device_type": "M2012K10C",
  23. "device_brand": "Redmi",
  24. "os_version": "11",
  25. "channel": "default",
  26. "raw_channel": "default",
  27. "oaid": "9494817a02a93435",
  28. "msa_oaid": "9494817a02a93435",
  29. "uuid": "randomUUID_f87c01c7-3d61-4feb-ade0-3d6d45d24dfd",
  30. "device_id": "23b07cf840c8b3eeca8c01fc56f0f0a09",
  31. "support_h265": "1",
  32. "Host": "app.whjzjx.cn",
  33. "Connection": "Keep-Alive",
  34. "User-Agent": "okhttp/4.10.0"
  35. },
  36. timeout: 5000,
  37. class_name: '剧场&热播剧&会员专享&星选好剧&新剧&阳光剧场',
  38. class_url: '1&2&8&7&3&5',
  39. 预处理: $js.toString(() => {
  40. let html = post('https://u.shytkjgs.com/user/v1/account/login', {
  41. headers: {
  42. 'User-Agent': 'okhttp/4.10.0',
  43. 'Accept-Encoding': 'gzip',
  44. 'Content-Type': 'application/x-www-form-urlencoded',
  45. 'x-app-id': '7',
  46. 'platform': '1',
  47. 'manufacturer': 'realme',
  48. 'version_name': '3.3.1',
  49. 'user_agent': 'Mozilla/5.0 (Linux; Android 9; RMX1931 Build/PQ3A.190605.05081124; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Mobile Safari/537.36',
  50. 'app_version': '3.3.1',
  51. 'device_platform': 'android',
  52. 'personalized_recommend_status': '1',
  53. 'device_type': 'RMX1931',
  54. 'device_brand': 'realme',
  55. 'os_version': '9',
  56. 'channel': 'default',
  57. 'raw_channel': 'default',
  58. 'oaid': '',
  59. 'msa_oaid': '',
  60. 'uuid': 'randomUUID_914e7a9b-deac-4f80-9247-db56669187df',
  61. 'device_id': '24250683a3bdb3f118dff25ba4b1cba1a',
  62. 'ab_id': '',
  63. 'support_h265': '1'
  64. },
  65. body: "device=24250683a3bdb3f118dff25ba4b1cba1a&install_first_open=false&first_install_time=1723214205125&last_update_time=1723214205125&report_link_url="
  66. });
  67. rule.headers['authorization'] = JSON.parse(html).data.token
  68. }),
  69. play_parse: true,
  70. lazy: $js.toString(() => {
  71. input = {
  72. url: input,
  73. parse: 0
  74. }
  75. }),
  76. double: true,
  77. 一级: $js.toString(() => {
  78. let d = [];
  79. let html = request(input, {headers: rule.headers});
  80. let data = JSON.parse(html).data.list;
  81. data.forEach(it => {
  82. let id = 'https://app.whjzjx.cn/v2/theater_parent/detail?theater_parent_id=' + it.theater.id;
  83. d.push({
  84. url: id,
  85. title: it.theater.title,
  86. img: it.theater.cover_url,
  87. desc: it.theater.theme,
  88. })
  89. })
  90. setResult(d);
  91. }),
  92. 二级: $js.toString(() => {
  93. let urls = [];
  94. let html = request(input, {headers: rule.headers});
  95. let data = JSON.parse(html).data;
  96. data.theaters.forEach(it => {
  97. urls.push(it.num + '$' + it.son_video_url);
  98. })
  99. VOD = {
  100. vod_name: data.title,
  101. vod_pic: data.cover_url,
  102. vod_play_from: '秋秋',
  103. vod_play_url: urls.join('#')
  104. };
  105. }),
  106. 搜索: $js.toString(() => {
  107. let html = post(input, {headers: rule.headers, body: {"text": KEY}})
  108. let list = JSON.parse(html).data.theater.search_data;
  109. list.forEach(it => {
  110. let id = 'https://app.whjzjx.cn/v2/theater_parent/detail?theater_parent_id=' + it.id;
  111. d.push({
  112. url: id,
  113. title: it.title,
  114. img: it.cover_url,
  115. content: it.introduction,
  116. })
  117. })
  118. setResult(d);
  119. }),
  120. }